<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('configs', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->default('')->nullable()->comment('站点名称');
            $table->text('description')->nullable()->comment('站点名称');
            $table->text('qr_code')->nullable()->comment('公众号二维码图片url');
            $table->text('code')->nullable()->comment('小程序二维码图片url');
            $table->string('tel')->default('')->comment('联系电话');
            $table->string('email')->default('')->comment('邮箱');
            $table->string('address')->default('')->comment('地址');
            $table->text('keyword')->nullable()->comment('关键字');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('configs');
    }
}
